<?php
$time=date("Y-m-d H:i:s",strtotime("-1 day"));
echo $time;
?>
